KDC-L16 communication driver

 

KDC-L16 communication driver is the driver to communicate with chiller load controller of Ki In System in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of KDC-L16 communication driver.

<Figure 1>  Read setting example of KDC-L16 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to controller.

Baud rate, parity bit, data bit stop bit of W3005 controller are fixed to 9600, 0, 8, 1.

 

KDC-L16 communication driver read schedule 

Read schedule setting parameters are as follows:

1) Station – Don't care.

2) Read command – Command = C, V, P, Q, H, ...

S : setting data, ( address = 1 ~ 3 mode setting, extra2 = setting of load change, extra3 : control rate)

A or a : auto/manual setting of indivisual DC status,

H :read of one day data per 15 minute unit. ( address = year, extra2 = month, extra3 = day)

3) Read start address –  Read start address.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Fixed to according to read command. ( refer to <Table 1> ~ <Table 6> )

6) Extra2 – Read parameter when H, Q, S, ... command.

7) Extra3 – Read parameter when H, Q, S, ... command.

 

Read schedule example)  

READ,           0,           C,          0,           0,           1, 

READ,           0,           V,          0,           1,           21,

READ,           0,           P,          1,           30,         13,

READ,           0,           H,          2000,     50,         1,           3,           8,

READ,           0,           Q,          0,           250,       1,           1,           1,

 

Note) Save start address for each read command store communication status that is 0 - error, 1 - normal.

 

<Table 1>, <Table 2> are data saving address and contnets for current status monitoring command( V ), 15 minutes Peak power monitoring command( P ).

<Table 3>, <Table 4> are data saving address and contnets for result of setting data command( S ), auto/manual status command( A ).

<Table 5>, <Table 6> are data saving address and contnets for load control status read command( a ), 15 minutes Peak value read command( H ).

Data saving address Contents Remarks
Start addr + 0 communication status normal - 1, error – 0
" + 1 number of load 
" + 2 ~ 3 current power high + low word  
" + 4 ~ 5 basis power high + low word  
" + 6 ~ 7 forecast power high + low word  
" + 8 ~ 9 target power high + low word  
" + 10 progressed demand time   
" + 11 ~ 12 load status high + low word  
" + 13 alarm status 1 byte  
" + 14 restart flag 1 byte  
" + 15 current year 1 word     
" + 16 current month 1 byte  
" + 17 current day 1 byte  
" + 18 current hour 1 byte  
" + 19 current minute 1 byte  
" + 20 current second 1 byte  
<Table 1> Data saving address and contnets for current status monitoring command( V )

Data saving address Contents Remarks
Start addr +0 communication status normal - 1, error – 0
" + 1 year  
" + 2  month  
" + 3  day  
" + 4  hour  
" + 5 ~ 6 15 minute Peak data 1 high + low word  
" + 7 ~ 8 15 minute Peak data 2 high + low word  
" + 9 ~ 10 15 minute Peak data 3 high + low word  
" + 11 ~ 12 15 minute Peak data 4 high + low word  
" + 13 ~ 14 today max Peak high + low word  
" + 15 ~ 16 today total high + low word  
<Table 2> Data saving address and contnets for 15 minutes Peak power monitoring command( P )

 
Data saving address Contents Remarks
Start addr +0 communication status normal - 1, error – 0
" + 1 setting of load change 1 - set, 0 - don't set
" + 2 control rate setting of control rate
" + 3 selection of mode 1-control of demand power,
2-compare of demand, forecast,
3-control of load
<Table 3> Data saving address and contnets for result of setting data command( S )

 
Data saving address Contents Remarks
Start addr +0 communication status normal - 1, error – 0
" + 1 setting of auto/manual 1 - automatic, 0 - manual
<Table 4> Data saving address and contnets for auto/manual status command( A )

 
Data saving address Contents Remarks
Start addr +0 communication status normal - 1, error – 0
" + 1 setting number of load  
" + 2 ?  
<Table 5> Data saving address and contnets for load control status read command( a )

 
Data saving address Contents Remarks
Start addr +0 communication status normal - 1, error – 0
" + 1 year of data 1 ~ 12
" + 2 day of data 1 ~ 31
" + 3 ~ 4 target power 2word(4bute)
" + 5 ~ 6 0: 0 ~ 14 Peak value "
" + 7 ~ 8 0: 15 ~ 29 Peak value "
" + 9 ~ 194 ..... "
" + 195 ~ 196 23: 45 ~ 59 Peak value "
" + 197 ~ 198 Peak value of today "
" + 199 ~ 200 sum of today " total 201word
<Table 6> Data saving address and contnets for 15 minutes Peak value read command( H )

2. Writing settings

You can reset and time syncronization by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS          Memory address for write result. ( normal - 1, error – 0 )

4)  Extra1                  Write command = C, V, P, A, a, Q, S, ...

5) Extra2                   Control rate when S write command. ( 0 ~ 255 )

 

Write example 1)

PORT:0,  station:0, ADDRESS:0030, Extra1: C,  Extra2 : 0

The setting parameter shown above is a communication status read example.

After writing, the readed communication status save at 30 WORD memory. ( 0 = error, 1 = normal )

 

Note) If you want save the readed data, you have to set '1' at protocol option.

 

Analog Write 

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS          Memory address for write result. ( normal - 1, error – 0 )

4)  Extra1                  Write command = C, V, P, S, A, a, H, Q, ...

5) Extra2                   Setting status when S write command. ( set -1, don't set - 0 )

 

Write example 1)

PORT:0,  station:0, ADDRESS:0000, Extra1: V,  Extra2 : 0

The setting parameter shown above is a current status monitoring command example.

After writing, the readed current status monitoring data save from 0 WORD memory. ( refer to <Table 1> )

 

Write example 2)

PORT:0,  station:0, ADDRESS:0050, Extra1: S,  Extra2 : 0, Output value : 3002

The setting parameter shown above is data setting example.

The setting value = setting status : 1(set),  control : 2, mode setting : 3 (control of load).

 

Write example 3)

PORT:0,  station:0, ADDRESS:0150, Extra1: H,  Extra2 : 2013, Output value : 1020

The setting parameter shown above is  15 minutes Peak value read command example for 2013-10-20.

After writing, the readed 15 minutes Peak value save from 150 WORD memory. ( refer to <Table 6> )

 

Note) If you want save the readed data, you have to set '1' at protocol option.